home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fritz: All Fritz
/
All Fritz.zip
/
All Fritz
/
FILES
/
PROGASIC
/
BASFILES.LZH
/
JULIAN.BAS
< prev
next >
Wrap
BASIC Source File
|
1988-09-10
|
332b
|
16 lines
'$INCLUDE:'QBTOOLS.INC'
'' '$INCLUDE:'QBTOOLS2.INC'
FUNCTION Julian (Dt$) STATIC
CALL DateToMDY(Dt$, M%, D%, Y%)
M! = M%
D! = D%
Y! = Y%
Julian! = Y! * 365 + INT((Y! - 1) / 4) + (M! - 1) * 28 + VAL(MID$("000303060811131619212426", (M! - 1) * 2 + 1, 2)) - ((M! > 2) AND ((Y! AND NOT -4) = 0)) + D!
END FUNCTION